package shape;

public class Square implements Shape {

    private int size;

    public Square(int size) {
        this.size = size;
    }

    @Override
    public int calculateArea() {
        return size * size;
    }

    @Override
    public int calculatePerimeter() {
        int quantitySides = 4;
        return size * quantitySides;
    }
}
